<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <link rel="stylesheet" href="../../css/public.css">
    <link rel="stylesheet" href="../../css/base.css">
    <link rel="stylesheet" href="../../css/my_dianpu.css">
    <title>店铺设置</title>
    <style>
        .swipe {
            overflow: hidden;
            visibility: hidden;
            position: relative;
        }
        .swipe-wrap {
            overflow: hidden;
            position: relative;
        }
        .swipe-wrap > figure {
            float: left;
            width: 100%;
            position: relative;
        }

        #slider {
            max-width: 100%;/* 设置最大的宽度 */
            margin: 0px auto; /* 居中对齐 */
        }
        figure {
            margin: 0;/* 对齐，四周宽度都为0，在轮播的时候，以整张图片进行移动 */
        }
        .swipe-wrap img {
            width: 100%;
        }
    </style>
</head>
<body>
<header id="header" class="fixed">
    <div class="header-wrap">
        <div class="header-l">
            <a href="javascript:history.go(-1)">
                <i class="back"></i>
            </a>
        </div>
        <div class="header-title" style="margin-left: 50px">
            <h1>店铺详情</h1>
        </div>
          <div style="float: right;width: 50px;font-size: 12px;line-height: 49px;">
                <a style="color: #000" href="shopset.html">设置</a>
            </div>
    </div>
</header>
    <div class="top" id="store_info" style="margin-top: 40px; visibility: visible;">
    </div>
    <h4>全部商品</h4>
    <div class="goods">
        <ul id="shop_collect"></ul>
    </div>
</body>
</html>
<!-- 店铺排行榜_收藏排行 tpl -->
<script type="text/html" id="shop_collect_tpl">
    <% for (var i in rec_goods_list) { var v = rec_goods_list[i]; %>
    <li>
        <% if(v.store_class==0) { %>
        <a href="../product_detail.html?goods_id=<%= v.goods_id %>&mystore_id=<%= v.store_id %>">
        <% }else{%>
        <a href="../product_detail.html?goods_id=<%= v.goods_id %>">
        <% } %>
        <img src="<%= v.goods_image_url %>" alt=""/>
        <p><%= v.goods_name %></p>
        <p><span class="red">￥<%= v.goods_price %></span> <strong>月销<span><%= v.goods_salenum %></span>件</strong></p>
    </a></li>
    <% } %>
</script>
<script type="text/html" id="store_info_tpl">
    <div id='slider' class='swipe' style="height: 170px">
        <div class='swipe-wrap' >
            <% if(store_info.m_store_banner) { %>
            <% for(var i=0; i<store_info.m_store_banner.length;i++) { %>
            <figure>
                <div>
                    <img  src="<%=SITEURL%>/data/upload/shop/banner/<%= store_info.m_store_banner[i] %>" alt=""/>
                </div>
            </figure>
            <% } %>
            <% }else{ %>
            <figure>
                <div>
                    <img  src="../../images/dianpu.png" alt=""/>
                </div>
            </figure>
            <% } %>
        </div>
    </div>
    <div class="top_bot">
        <div class="imgName">
            <img src="<%= store_info.store_avatar %>" alt=""/><span><%= store_info.store_name %></span>
        </div>
        <ul>
            <li>
                <p><%= rec_goods_list_count %></p>
                <p>全部商品</p>
            </li>
            <li>
                <p id="store_notcollect"><img src="../../images/center_m_03.png"></p>
                <p >收藏本店</p>
            </li>
            <li>
                <p><img src="../../images/store_qroce.png"></p>
                <p><a href="javascript:;" onclick="share()" style="color: #666">二维码</a> </p>
            </li>
        </ul>
    </div>
</script>
<script type="text/javascript" src="../../js/zepto.min.js"></script>
<script type="text/javascript" src="../../js/config.js"></script>
<script type="text/javascript" src="../../js/template.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>
<script type="text/javascript" src="../../js/simple-plugin.js"></script>
<script type="text/javascript" src="../../js/zepto.waypoints.js"></script>
<script type="text/javascript" src="../../js/ncscroll-load.js"></script>
<script type="text/javascript" src="../../js/swipe.js"></script>
<script type="text/javascript" src="../../js/tmpl/mystore.js"></script>
<script type="text/javascript" src="../../js/tmpl/footer.js"></script>